$OpenBSD: patch-chrome_browser_extensions_api_messaging_message_service_cc,v 1.11 2017/03/14 12:18:53 robert Exp $
--- chrome/browser/extensions/api/messaging/message_service.cc.orig.port	Thu Mar  9 21:04:28 2017
+++ chrome/browser/extensions/api/messaging/message_service.cc	Fri Mar 10 07:46:19 2017
@@ -106,7 +106,7 @@ MessageService::PolicyPermission MessageService::IsNat
 
 const char kReceivingEndDoesntExistError[] =
     "Could not establish connection. Receiving end does not exist.";
-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD)
 const char kMissingPermissionError[] =
     "Access to native messaging requires nativeMessaging permission.";
 const char kProhibitedByPoliciesError[] =
@@ -383,7 +383,7 @@ void MessageService::OpenChannelToNativeApp(
   if (!source)
     return;
 
-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD)
   content::WebContents* web_contents =
       content::WebContents::FromRenderFrameHost(source);
   ExtensionWebContentsObserver* extension_web_contents_observer =
